package OOP.day07;

public class CarMain {
   public static void main(String[] args){
       Car car = new Car();// 创建Car对象
       car.brand = "YADI";
       car.color = "Black";
       car.price = "2";
       car.start();
       car.run();
       car.stop();

       System.out.println("--------------------");
       Car car1 = new Car("Toyota", "3", "Red");
       car1.start();
       car1.run();
       car1.stop();
   }
}
